

from collections import namedtuple;



User = namedtuple("User",["name","age","height","edu"]);
user_tuple = ("张三",29,175);


user_dict = {"name":"李四","age":23,"height":175};

user = User(**user_dict,edu="master");
#user = User(*user_tuple,"master")
# user = User(name="张三",age=29,height=175);
print(user.age)